package com.example.concurrency.domain;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门vo
 *
 * @author jimmy
 */
public class DepartmentVo
{
    @JSONField(name = "id", serializeUsing = LongToStringSerializer.class)
    private Long id;

    @JSONField(name = "name")
    private String name;

    @JSONField(name = "parent_id", serializeUsing = LongToStringSerializer.class)
    private Long parentId;

    @JSONField(name = "sort")
    private Integer sort;

    @JSONField(name = "children")
    private List<DepartmentVo> children = new ArrayList<>();

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public Long getParentId()
    {
        return parentId;
    }

    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }

    public void setChildren(List<DepartmentVo> children)
    {
        this.children = children;
    }

    public List<DepartmentVo> getChildren()
    {
        return children;
    }
}

